﻿using System.ComponentModel.DataAnnotations;
using CRM.Models;
using CRM.Enums;
using CRM.Models.Email;

namespace CRM.ViewModels.System
{

    public class GetId {
        public int Id { get; set; }
    }

    public class OemSubAdd
    {
        public string Name { get; set; }
        public string Title { get; set; }
        public Oem.Types Style { get; set; }
        public string Domain { get; set; }
        public States State { get; set; }
        public string IconUrl { get; set; }
        public string LogoUrl { get; set; }
        public string IndexContent { get; set; }
        public bool ShowLoginLogo { get; set; }
        public bool ShowIndexLogo { get; set; }
        public bool ShowIndexContent { get; set; }
    }
    public class OemSubEdit
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Title { get; set; }
        public Oem.Types Style { get; set; }
        public string Domain { get; set; }
        public States State { get; set; }
        public string IconUrl { get; set; }
        public string LogoUrl { get; set; }
        public string IndexContent { get; set; }
        public bool ShowLoginLogo { get; set; }
        public bool ShowIndexLogo { get; set; }
        public bool ShowIndexContent { get; set; }
    }
    
    public class OemEmailSettingsEdit
    {
        public int OemId { get; set; }
        /// <summary>
        /// 使用指定的第三方邮件接口
        /// </summary>
        public EmailPlatform EmailPlatform { get; set; } = EmailPlatform.Mailjet;

        /// <summary>
        /// 是否使用独立的mailjet接口
        /// </summary>
        public bool UseIndependentMailjet { get; set; } = false;
        [MaxLength(64)]
        public string MailjetApiKey { get; set; }
        [MaxLength(64)]
        public string MailjetApiSecret { get; set; }
        /// <summary>
        /// 是否使用独立的Rushmail接口
        /// </summary>
        public bool UseIndependentRushmail { get; set; } = false;
        [MaxLength(10)]
        public string RushmailCustomId { get; set; }
        [MaxLength(64)]
        public string RushmailSecretKey { get; set; }
    }

    public class AllotData {
        public int OemId { get; set; }
        public string Name { get; set; }
    }
}
